#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

#include <string.h>
int main()
{
	int arr[] = { 1,1 };
	int sum1 = 0;int sum = 0;
	int sz = sizeof(arr[]) / sizeof(arr[0]);
	for (int i = 0;i < sz;i++)
	{
		if (arr[i] == 1) { sum1++; }
		if (arr[i] != 0) 
		{
			if (sum1 >= sum) { sum = sum1;sum1 = 0; }
			if (sum1 < sum) { sum1 = 0; }
		}
	}
	printf("%d", sum);
	return 0;
}
